// 封装时间函数
export const getTime=()=>{
  const date=new Date()
  const year=date.getFullYear()
  const month=date.getMonth()+1
  const day=date.getDate()
  const formatTime=`${year}${String(month).padStart(2,'0')}${String(day).padStart(2,'0')}`
  return formatTime
}